package top.hcode.hoj.dao.collect;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
import top.hcode.hoj.mapper.CollSelfIntroMapper;
import top.hcode.hoj.pojo.entity.coll.CollSelfIntro;

/**
 * @author orangej
 * @since 2025-01-21
 */
@Service
public class CollSelfIntroDao extends ServiceImpl<CollSelfIntroMapper, CollSelfIntro> {
    public CollSelfIntro getByUserIdAndCollId(String uid, String collId) {
        return lambdaQuery().eq(CollSelfIntro::getUserId, uid).eq(CollSelfIntro::getCollId, collId).one();
    }
}
